class Numero{
    public Numero(){
    }
    public static void main(String args[]){
        int n = Integer.parseInt(args[0]);
        int aux = 0;
        while(n>0){
            aux = aux * 10 + (n %10 );
            n = n / 10;
        }
        System.out.println(aux);
    }
}


